package zuoye.ershouche.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zuoye.ershouche.mapper.OrderMapper;
import zuoye.ershouche.service.OrderServer;

@Service
public class OrderServerImpl implements OrderServer {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public int insertOrder(int userId, int shellId, int carId) {
        return orderMapper.insertOrder(userId, shellId, carId);
    }

    @Override
    public int payOrder(int id) {
        return orderMapper.updateOrder(id);
    }

    @Override
    public int deleteOrder(int id) {
        return orderMapper.deleteOrderById(id);
    }
}
